package com.jason.happy;

import android.app.Activity;

import com.facebook.drawee.view.SimpleDraweeView;
import com.jason.happy.common.framework.BaseLogicPresenter;
import com.jason.happy.common.framework.BaseLogicView;
import com.jason.happy.common.utils.ImageManager;
import com.jason.happy.module.account.ui.LoginActivity;
import com.orhanobut.logger.Logger;

/**
 * Created by hacker on 17-6-25.
 */

public class SplashLogicPresenter extends BaseLogicPresenter<SplasLogicView> {


    /**
     *
     */
    public void loadSplashGraphic(final SimpleDraweeView view) {
        String url = "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1498588621401&di=2c697a1e09f6409249a13ee7ac8b8c61&imgtype=0&src=http%3A%2F%2Fwww.sznews.com%2Fzhuanti%2Fimages%2Fattachement%2Fjpg%2Fsite3%2F20100610%2F001422474dbc0d7a682907.jpg";
        view.setImageURI(url);
        view.postDelayed(new Runnable() {
            @Override
            public void run() {
                startActivityByScale(LoginActivity.class, view);
            }
        }, 3000);
    }

}
